import request from '@/utils/request'

// 查询案件信息列表
export function listCase(query) {
  return request({
    url: '/fs/case/list',
    method: 'get',
    params: query
  })
}
// 查询案件信息列表
export function listMy(query) {
  return request({
    url: '/fs/case/listMy',
    method: 'get',
    params: query
  })
}

// 查询案件信息详细
export function getCase(id) {
  return request({
    url: '/fs/case/' + id,
    method: 'get'
  })
}

// 新增案件信息
export function addCase(data) {
  return request({
    url: '/fs/case',
    method: 'post',
    data: data
  })
}

// 修改案件信息
export function updateCase(data) {
  return request({
    url: '/fs/case',
    method: 'put',
    data: data
  })
}

// 删除案件信息
export function delCase(id) {
  return request({
    url: '/fs/case/' + id,
    method: 'delete'
  })
}

// 查询案件审查列表
export function listSh(id) {
  return request({
    url: '/fs/case/listExamine/' + id,
    method: 'get'
  })
}

// 修改案件信息
export function ja(data) {
  return request({
    url: '/fs/case/ja',
    method: 'post',
    data: data
  })
}
// 修改案件信息
export function initBill(id) {
  return request({
    url: '/fs/case/initBill/' + id,
    method: 'get',
  })
}


// 查询案件审查列表
export function listTjy() {
  return request({
    url: '/fs/case/listTjy/',
    method: 'get'
  })
}

// 查询案件审查列表
export function listFile(id) {
  return request({
    url: '/fs/case/listFile/' + id,
    method: 'get'
  })
}
// 查询案件审查列表
export function listSf() {
  return request({
    url: '/fs/case/listSf/',
    method: 'get'
  })
}
export function listChild(id) {
  return request({
    url: '/fs/case/listChild/' + id,
    method: 'get'
  })
}

export function listZf() {
  return request({
    url: '/fs/case/listZf/',
    method: 'get'
  })
}
export function listBatch(id) {
  return request({
    url: '/fs/case/listBatch/' + id,
    method: 'get'
  })
}
export function listSszt() {
  return request({
    url: '/fs/case/listSszt/',
    method: 'get'
  })
}

export function addExpress(data) {
  return request({
    url: '/fs/express',
    method: 'post',
    data: data
  })
}
export function getExpressByKddh(dh) {
  return request({
    url: '/fs/express/getByKddh/' + dh,
    method: 'get'
  })
}
export function getPostByCaseId(id) {
  return request({
    url: '/fs/case/getPostByCaseId/' + id,
    method: 'get'
  })
}
export function addPost(data) {
  return request({
    url: '/fs/case/post',
    method: 'post',
    data: data
  })
}

export function updatePost(data) {
  return request({
    url: '/fs/case/post',
    method: 'put',
    data: data
  })
}
export function getPushByCaseId(id) {
  return request({
    url: '/fs/case/getPushByCaseId/' + id,
    method: 'get'
  })
}
export function addPush(data) {
  return request({
    url: '/fs/case/push',
    method: 'post',
    data: data
  })
}
export function updatePush(data) {
  return request({
    url: '/fs/case/push',
    method: 'put',
    data: data
  })
}

export function getRepaymentByCaseId(id) {
  return request({
    url: '/fs/case/getRepaymentByCaseId/' + id,
    method: 'get'
  })
}
export function getCourtContact(id) {
  return request({
    url: '/fs/case/getCourtContact/' + id,
    method: 'get'
  })
}
